package cn.tedu.ivos.geofence.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;

@Data
public class GeofenceParam {
    @ApiModelProperty(value = "围栏编号")
    private Long id;
    @ApiModelProperty(value = "围栏名称")
    private String name;
    @ApiModelProperty(value = "围栏状态")
    private String status;
    @ApiModelProperty(value = "围栏坐标点")
    //前端数据是K-V结构
    //{type: 'circle', longitude: 116.39191321300791, latitude: 39.910675672197726, radius: 470}
    //{type: 'rectangle', longitude: 116.39191321300791, latitude: 39.910675672197726, radius: 470, recPoints: '116.39040405975115-39.910122226712346,116.40678915…209676067468,116.39040405975115-39.90209676067468'}
    //所以使用HashMap
    private HashMap<String,String> position;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;
}